-- GENERATED SPELL FOR [Vile Familiar] --


function spell0_3101(pUnit, Event) --@Fireball,n/a--
pUnit:FullCastSpellOnTarget(11921,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_3101', 3000, 1)
end

function Sorts_3101(pUnit, Event)
local choix_sorts_3101 = math.random(0, 0)
if choix_sorts_3101 == 0 then
pUnit:RegisterEvent('spell0_3101', 1, 1)
end
end

function mob3101_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_3101', math.random(1500, 3000), 1)
end

function mob3101_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob3101_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob3101_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(3101, 1, 'mob3101_Action')
RegisterUnitEvent(3101, 2, 'mob3101_Leave')
RegisterUnitEvent(3101, 3, 'mob3101_Kill')
RegisterUnitEvent(3101, 4, 'mob3101_Die')
